package cn.wen.mybatis.test.dao;


import cn.wen.mybatis.framework.annotations.Param;
import cn.wen.mybatis.test.po.User;

import java.util.*;

public interface UserDao {

	/**
	 * 根据用户Id查询用户信息
	 * @param param
	 * @return
	 */
	User queryUserById(User param);

	User queryUserByName(String username);

	boolean insertUser(@Param("user")User user);

	boolean updateUser(@Param("user") User user);

	boolean deleteUser(@Param("user") User user);

	List<User> selectAllUserByIds(@Param("ids") List<Integer> ids);

	List<User> findUserByUsername(@Param("value")String value);

	User selectUserBySelect();

//	User queryUserByJDBCId(User param);
}
